﻿namespace SKeeper.Domain.Warehouse
{
    using Items;
    using System;
    using SKeeper.Infrastructure;
    using System.Collections.Generic;
    using Invoices;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    public class StoredItem : IEntity
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        public double Quantity { get; set; }

        public Units Unit { get; set; }

        public DateTime LatestActivity { get; set; }

        public int ItemId { get; set; }

        public virtual Item Item { get; set; }
        
        public int WarehouseId { get; set; }

        public virtual Warehouse Warehouse { get; set; }

        public virtual ICollection<StoredItemMovement> StoredItemMovements { get; set; }
    }
}
